package com.pzb.wechat.service;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.pzb.wechat.domain.TemplateUploadModel;
import com.pzb.wechat.domain.WechatComponent;

/**
 * 三方信息Service接口
 * 
 * @author Mr_Wu
 * @date 2021-12-31
 */
public interface IWechatComponentService 
{
    /**
     * 查询三方信息
     *
     * @return 三方信息
     */
    public WechatComponent selectWechatComponent();

    /**
     * 修改三方信息
     * 
     * @param wechatComponent 三方信息
     * @return 结果
     */
    public int updateWechatComponent(WechatComponent wechatComponent);

    public String getApiComponentToken();

    public String createPreauthcode();

    public JSONObject queryAuth(String authorizationCode);

    public JSONObject getAuthorizerInfo(String authorizerAppid);

    public JSONObject gettemplatedraftlist();

    public JSONObject gettemplatelist();

    public JSONObject deletetemplate(Long template_id);

    public JSONObject addtotemplate(Integer draft_id,Integer template_type);


    public JSONObject templateUpload(TemplateUploadModel uploadModel);
}
